package com.tongtong.neo4j.controller;

import com.tongtong.neo4j.service.MyselfRepository;
import com.tt.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: Neo4jBaseController
 * @Author zl
 * @Package com.tongtong.neo4j.controller
 * @Date 2025/8/27 8:28
 * @description: Neo4jController
 */
@RestController
@RequestMapping("/neo4j")
public class Neo4jBaseController {
    @Autowired
    private MyselfRepository myselfRepository;

    @GetMapping("/queryData")
    public R queryData(){
        return R.ok().put("data",myselfRepository.queryAllData());
    }


}
